<?php /* Smarty version Smarty-3.1.18, created on 2017-06-02 14:58:26
         compiled from "/data/www/mystery/protected/modules/webadmin/views/netquestion/basic.tpl" */ ?>
<?php /*%%SmartyHeaderCode:644030023552e6fa578f024-66910063%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0dcf9c36ed45b4c41fdfa76564a9ab89de716287' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/netquestion/basic.tpl',
      1 => 1494904921,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '644030023552e6fa578f024-66910063',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_552e6fa57cdbe4_03464248',
  'variables' => 
  array (
    'subject_info' => 0,
    'answer_info' => 0,
    'subject_id' => 0,
    'nq_id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_552e6fa57cdbe4_03464248')) {function content_552e6fa57cdbe4_03464248($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<form name='myForm1' id='myForm1' method='post' action='/webadmin/netquestion/Dobasic'>
    <div style='margin:10px;'>
        <table>
            <tr><td><h3>题目：</h3></td><td><h3><?php echo $_smarty_tpl->tpl_vars['subject_info']->value['question_num'];?>
 <?php echo $_smarty_tpl->tpl_vars['subject_info']->value['title'];?>
</h3></td></tr>
            <tr>
                <td>答案：</td>
                <td>
                    <input name='answer_desc' class="input-text" id="answer_desc" type='text' value='<?php echo $_smarty_tpl->tpl_vars['answer_info']->value['answer_desc'];?>
'>
                </td>
            </tr>
            <tr><td colspan='2' style="text-align: center;"><input type='submit' class="button" value='提交'></td></tr>
        </table>
            <input type="hidden" name="answer_id" value="<?php echo $_smarty_tpl->tpl_vars['answer_info']->value['answer_id'];?>
" /> 
            <input type='hidden' name='subject_id' value='<?php echo $_smarty_tpl->tpl_vars['subject_id']->value;?>
' />
        <input name='nq_id' type='hidden' value='<?php echo $_smarty_tpl->tpl_vars['nq_id']->value;?>
' />
    </div>
</form>
<script type='text/javascript' src="/js/jquery.uploadify.min.js"></script>
<link href="/css/uploadify.css" rel="stylesheet">
    <script>
        $(document).ready(function() {     
                var options = {         
                    beforeSubmit:  showRequest,  
                    success:       showResponse,
                    dataType:  'json'
                }
                $('#myForm1').ajaxForm(options); 
                
        });
            function showRequest(formData, jqForm, options) { 
                return true;
            }
            function showResponse(responseText, statusText, xhr, $form)  { 
                alert(responseText.note);
                if (responseText.status==1) {
                    window.parent.location.reload();
                }
            }
    </script>
    <?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
